/**
 * 
 */
package any.desktop.server;

import java.io.IOException;
import java.util.Iterator;

import org.apache.lucene.document.Document;

/**
 * @author keke <keke@codehaus.org>
 * @version
 * @revision $Revision:$
 */
public interface DesktopSearcher {
    /**
     * Search desktop by specified <code>query</code> string.
     * 
     * @param query
     *            the query string
     * @param start
     *            the start offset
     * @param length
     *            lengths of result to be returned.
     * @return an Iteration of {@link Document} instance.
     * @throws IOException
     */
    Iterator<Document> search(String query, int start, int length)
            throws IOException;
}
